package com.stores.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;
import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable = "true")
public class Store {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private String name;
	@Persistent
	private String description;

	@Persistent(defaultFetchGroup = "true")
	private Address storeAddress;

	@Persistent(defaultFetchGroup = "true")
	private PhoneNumber storeNumber;

	@Persistent
	private String contactPersonName;

	@Persistent
	private String emailAddress;
	@Persistent
	private Blob smallImage;
	@Persistent
	private Blob largeImage;
	@Persistent
	private String tin;
	@Persistent
	private String tagline;

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setSmallImage(Blob smallImage) {
		this.smallImage = smallImage;
	}

	public Blob getSmallImage() {
		return smallImage;
	}

	public void setLargeImage(Blob largeImage) {
		this.largeImage = largeImage;
	}

	public Blob getLargeImage() {
		return largeImage;
	}

	public void setStoreAddress(Address storeAddress) {
		this.storeAddress = storeAddress;
	}

	public Address getStoreAddress() {
		return storeAddress;
	}

	public void setStoreNumber(PhoneNumber storeNumber) {
		this.storeNumber = storeNumber;
	}

	public PhoneNumber getStoreNumber() {
		return storeNumber;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	public String getEmailAddress() {
		return emailAddress;
	}

	public void setTin(String tin) {
		this.tin = tin;
	}

	public String getTin() {
		return tin;
	}

	public void setTagline(String tagline) {
		this.tagline = tagline;
	}

	public String getTagline() {
		return tagline;
	}

	public void setContactPersonName(String contactPersonName) {
		this.contactPersonName = contactPersonName;
	}

	public String getContactPersonName() {
		return contactPersonName;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}
}
